package com.demo.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.demo.service.IDemoService;

@Controller
public class DemoController {
	
	@Autowired
	private IDemoService demoService;
	
	@RequestMapping("/demo")
    public String queryList(){
		System.err.println("****aaaaa***********");
		Map<String,String> inMap = new HashMap<String,String>();
		inMap.put("service", "userService");
		inMap.put("method", "queryUserList");
		//String strJson = JsonUtil.map2Json(inMap);
		//String str = contextService.execute(strJson); 
		demoService.queryUserList();
		String str = "";
		System.err.println("***"+str);
		return "index";
	}
}
